#include <strings.h>
#include "filter_params.h"
#include "filters.h"

void
output_lp_filter(smpl_t *buf, long size) {
	int i;
	unsigned char j;
	double tmp;
	//gen empty section for FIR order
	bzero((void*)(buf+size), sizeof(smpl_t) * BL_OUT_LP_FIR);
	//FIR
	for (i=0; i<size; i++) {
		tmp = 0;
		for (j=0; j<BL_OUT_LP_FIR; j++) {
			tmp += (double)(buf[i+j]) * B_OUT_LP_FIR[j];
		}
		buf[i] = tmp;
	}
}
